<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title><?php echo C('WEB_SITE_TITLE'); if(!empty($meta_title)): ?>——<?php echo ($meta_title); endif; ?></title></title>
<meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>"/>
<meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>"/>

<link rel="stylesheet" type="text/css" href="/Public/Home/css/common.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/css/index.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/static/swiper/swiper.min.css" />
<script src="/Public/Home/static/swiper/swiper.min.js"></script>
<script src="/Public/Home/static/jquery.2.1.1.min.js"></script>
<script src="/Public/Home/js/common.js"></script>

<style>
    .menu{padding-left: 10px;margin-bottom: 40px;}
    .menu li{list-style: none;float: left;margin-left: 45px;margin-right: 60px;background-color:#E14C4B ;padding: 3px 5px 3px 5px; border-radius: 10px;margin-bottom: 20px;}
    .menu li a{color: white;}
    .son-on{background-color:#ae3034;text-decoration:underline;color:#ccc !important;}
</style>




</head>
<body class="index-page">
	<!-- 头部 -->
	
<div class="top">
    <div class="wrap">
        <div class="welcome">你好，欢迎您来到政信联众互联网信息服务有限公司！</div>
        <div class="favorite">
            <a href="javascript:void(0);" onclick="AddFavorite('我的网站',location.href)" >加入收藏</a> |
            <a href="javascript:void(0);" onclick="SetHome(this,location.href);">设为首页</a>
        </div>
    </div>
</div>
<!--logo+搜索-->
<div class="header">
    <div class="wrap">
        <div class="logo">
            <a href="http://new.zhengxin.com/"><img src="/Public/Home/images/logo.png"/></a>
        </div>
        <div class="search">
            <form method="post" action="<?php echo U('Keyword/index');?>" onsubmit="return detection()">
                <input class="text" type="text" name="keyword" placeholder="请输入搜索关键字"/>
                <input type="submit" class="btn" value="">
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function Trim(str)
    {
        return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function detection(){
        var keyword=$("input[name='keyword']").val();
        if(Trim(keyword)==""){
               alert("请输入关键字");
            return false;
        }
    }
   $(function(){
       $(window).scroll(function(){
           $(".top").css("display","none");
            $(".header").addClass("headeer");
           $(".navigation").addClass("navigationn");

           var top = $(this).scrollTop();
           if (top==0){
               $(".top").css("display","block");
               $(".header").removeClass("headeer");
               $(".navigation").removeClass("navigationn");
           }

           if(top>646){
               $(".sc").css("display","block");
           }
       })
   })
</script>
<!--菜单-->
<div class="navigation">
    <div class="wrap">
        <ul>
            <?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li >
                        <a <?php if(strstr($nav['url'],CONTROLLER_NAME)){ echo "style='background-color: #D64A4A;'"; } ?>   href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                            <?php echo ($nav["title"]); ?>
                        </a>
                    </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div id="body"></div>

    <div class="banner" style="background-image: url('/Public/Home/images/service.jpg') ">

    </div>















<!--<?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li>
            <a href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                <div class="cn same"><p><?php echo ($nav["title"]); ?></p></div>
                <div class="en same"><?php echo ($nav["english_name"]); ?></div>
            </a>
        </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>-->







	<!-- /头部 -->
	
	<!-- 主体 -->
	
    <div class="body" id="body">
        <div class="wrap">
            <!--面包屑-->
            <div class="box-crumbs">
                <div class="crumbs">

                </div>

                <b>服务项目</b>
                <span class="en">Service items</span>
            </div>
        </div>
        <div class="wrap">
            <div class="lef_menu">
                <ul id="menu">
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
                            <a <?php if(($val["id"]) == "579"): ?>href="<?php echo U('lists',array('id'=>$val['id']));?>" target="myFrameName"<?php endif; ?>  class="d_menu" onclick="c_menu(this);">
                                <?php echo ($val["title"]); ?>
                            </a>
                            <ul class="son_ul" style="display: none;">
                                <?php if(is_array($val['son'])): $i = 0; $__LIST__ = $val['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val_son): $mod = ($i % 2 );++$i;?><li class="son"><a data-id="<?php echo ($val_son["id"]); ?>" target="myFrameName" onclick="s_menu(<?php echo ($val_son["id"]); ?>,this)" class="s_menu" href="<?php echo U('info',array('id'=>$val_son['id']));?>"><?php echo ($val_son["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                            </ul>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="page_content">
                <iframe  frameborder="0" scrolling="no" id="external-frame" name="myFrameName" onload="setIframeHeight(this)" name="myFrameName" style="width: 100%;min-height: 500px;"
                <?php if(empty($template['template'])): ?>src="<?php echo U('Service/info',array('id'=>$id));?>"
                    <?php else: ?>
                    src="<?php echo U($template['template'],array('id'=>$template['id']));?>"<?php endif; ?>
                >
                </iframe>
                <script>
                    function setIframeHeight(iframe) {
                        if (iframe) {
                            var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
                            if (iframeWin.document.body) {
                                iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
                            }
                        }
                    };

                    window.onload = function () {
                        setIframeHeight(document.getElementById('external-frame'));
                    };
                </script>
            </div>
        </div>
    </div>

	<!-- /主体 -->

	<!-- 底部 -->
	<div class="footer">
    <div class="info wrap">
        <div class="logo">
            <a href="#"><img src="<?php echo (get_cover($config_set_info["logo"],'path')); ?>" alt=""></a>
        </div>
        <div class="text">
            公司：<?php echo ($config_set_info["company"]); ?><br/>
            电话：<?php echo ($config_set_info["tel"]); ?><br/>
            地址：<?php echo ($config_set_info["address"]); ?>
        </div>
        <div class="qrcode">
            <img src="<?php echo (get_cover($config_set_info["qr_code"],'path')); ?>" alt="">
        </div>
    </div>
    <div class="friends">
        <div class="wrap">
            友情链接：<?php if(is_array($friend_data)): $i = 0; $__LIST__ = $friend_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo ($val["links"]); ?>"><?php echo ($val["title"]); ?></a>&nbsp&nbsp<?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <div class="extend wrap">

        © 2000-2016  四川政信联众互联网信息服务有限公司 版权所有 蜀ICP备16003766号    技术支持：<a href="http://www.cdsok.com.cn">索客（ISONIC）科技</a>
    </div>
</div>

    <script>
        $(function(){
            var template_id="<?php echo ($template['id']); ?>";
            if(template_id==""){
                var id=<?php echo ($id); ?>;
                $("#menu .d_menu").eq(0).addClass("on");
                $("#menu").find(".s_menu[data-id="+id+"]").addClass("son-on");
                crumbs(id);
            }else{

                $("#menu .d_menu").eq(1).addClass("on");
                crumbs(template_id);
            }

    });
        function c_menu(v){
            $(v).next("ul").slideToggle("slow");
        }
        function s_menu(id,v){
            $(".s_menu").removeClass("son-on");
            $(v).addClass("son-on");
            $(".d_menu").removeClass("on");
            $(v).parent().parent(".son_ul").prev(".d_menu").addClass("on");
            crumbs(id);
        }
        $(".d_menu").click(function(){
            $(".d_menu").removeClass("on");
            $(this).addClass("on");
        });
        function crumbs(id){
            $.get("<?php echo U('place');?>",{id:id},function(data){
                $(".crumbs").html(data);
            });
        }
    </script>

	<!-- /底部 -->
</body>
</html>